/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jogo;

import java.awt.Polygon;
import java.awt.Rectangle;

/**
 *
 * @author Pxcvsa
 */
public class Ship extends BaseVectorShape{
    //Define o tamanho do Poligono
    private int[] shipx = {-6,-3,0,3,6,0};
    private int[] shipy = {6,7,7,7,6,-7};
    
    //Delimitar o retângulo
   public Rectangle getBounds(){
       Rectangle r;
       r = new Rectangle((int)getX() -6,(int)getY() -6,12,12);
       return r;
   }
    
   
   //Constutor default
   Ship(){
       setShape(new Polygon(shipx,shipy,shipx.length));
       setAlive(true);
   } 
}
